<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <div v-bind:id="a">111</div>
    <div v-bind:aaa="b">222</div>
    <!-- v-bind简写  :属性名 -->
    <hr>
    <label for="jl1">佳丽1</label>
    <input type="radio" id="jl1" v-model="url"  value="https://img2.baidu.com/it/u=2174817970,1668110339&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500">
    <br>
    <label for="jl2">佳丽2</label>
    <input type="radio" id="jl2" v-model="url"  value="https://img2.baidu.com/it/u=1824489899,1264593821&fm=253&fmt=auto&app=120&f=JPEG?w=1422&h=800">
    <br>
    <img :src="url" alt="" width="500">
  </div>
  <script src="./vue.global.js"></script>
  <script>
    // const title = '这是js全局变量';
    const { createApp } = Vue;
    const app = createApp({
      data(){
        return {
         a: 'box',
         b: '这是一个自定义属性',
         url: 'https://img2.baidu.com/it/u=1824489899,1264593821&fm=253&fmt=auto&app=120&f=JPEG?w=1422&h=800'
        }
      }
    })
    app.mount('#app')
  </script>
</body>
</html>